package com.oocl.im.main;

import com.oocl.im.constants.ServerMap;
import com.oocl.im.server.IMServer;

import javax.swing.*;
import java.io.IOException;
import java.util.HashMap;

public class Main {


    public static void main(String[] args) throws IOException {
        ServerMap.clientMap=new HashMap<>();
        initMap();
        IMServer server=new IMServer();
        server.run();
    }

    private static void initMap() {
        ServerMap.clientMap=new HashMap<>();
        ServerMap.socketMap=new HashMap<>();
        ServerMap.groupMap=new HashMap<>();
    }
}
